package cn.iocoder.yudao.module.erp.controller.admin.product.vo.product;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP 产品 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProductRespVO {

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15672")
    @ExcelProperty("产品编号")
    private Long id;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("产品名称")
    private String name;

    @Schema(description = "产品条码", requiredMode = Schema.RequiredMode.REQUIRED, example = "X110")
    @ExcelProperty("产品条码")
    private String barCode;

    @Schema(description = "产品分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11161")
    private Long categoryId;
    @Schema(description = "产品分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "水果")
    @ExcelProperty("产品分类")
    private String categoryName;

    @Schema(description = "单位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8869")
    private Long unitId;
    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "个")
    @ExcelProperty("单位")
    private String unitName;

    @Schema(description = "产品状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("产品状态")
    private Integer status;

    @Schema(description = "产品规格", example = "红色")
    @ExcelProperty("产品规格")
    private String standard;

    @Schema(description = "产品备注", example = "你猜")
    @ExcelProperty("产品备注")
    private String remark;

    @Schema(description = "保质期天数", example = "10")
    @ExcelProperty("保质期天数")
    private Integer expiryDay;

    @Schema(description = "基础重量（克）", example = "1.00")
    @ExcelProperty("基础重量（克）")
    private BigDecimal weight;

    @Schema(description = "采购价格，单位：元", example = "10.30")
    @ExcelProperty("采购价格，单位：元")
    private BigDecimal purchasePrice;

    @Schema(description = "销售价格，单位：元", example = "74.32")
    @ExcelProperty("销售价格，单位：元")
    private BigDecimal salePrice;

    @Schema(description = "最低价格，单位：元", example = "161.87")
    @ExcelProperty("最低价格，单位：元")
    private BigDecimal minPrice;

    // ========== 新增字段：图片和工艺相关 ==========
    
    @Schema(description = "产品图片URL", example = "https://example.com/image.jpg")
    @ExcelProperty("产品图片URL")
    private String imageUrl;
    
    @Schema(description = "整体工艺（5D、5G、3D、倒模等）", example = "5D")
    @ExcelProperty("整体工艺")
    private String overallCraftsmanship;
    
    @Schema(description = "表面工艺（古法、抛光、珐琅、拉丝等）", example = "古法")
    @ExcelProperty("表面工艺")
    private String surfaceCraftsmanship;
    
    @Schema(description = "塑形工艺（实心、厚壁中空、镂空等）", example = "实心")
    @ExcelProperty("塑形工艺")
    private String shapingCraftsmanship;
    
    // ========== 新增字段：尺寸相关 ==========
    
    @Schema(description = "面宽（mm）", example = "5.50")
    @ExcelProperty("面宽（mm）")
    private BigDecimal faceWidth;
    
    @Schema(description = "圈口/内径（mm）", example = "18.00")
    @ExcelProperty("圈口/内径（mm）")
    private BigDecimal innerDiameter;
    
    // ========== 新增字段：配件和特殊要求 ==========
    
    @Schema(description = "配件（莫桑、锆石、钻石等）", example = "莫桑,锆石")
    @ExcelProperty("配件")
    private String accessories;
    
    @Schema(description = "特殊要求", example = "需要特殊包装")
    @ExcelProperty("特殊要求")
    private String specialRequirements;
    
    // ========== 新增字段：金成色相关 ==========
    
    @Schema(description = "金成色ID（关联类别设定表）", example = "1")
    private Integer goldFineness;
    @Schema(description = "金成色名称", example = "18K")
    @ExcelProperty("金成色")
    private String goldFinenessName;
    
    // ========== 新增字段：库存和来源相关 ==========
    
    @Schema(description = "库存数量", example = "100")
    @ExcelProperty("库存数量")
    private Integer stock;
    
    @Schema(description = "商品来源ID（关联类别设定表）", example = "1")
    private Integer productSource;
    @Schema(description = "商品来源名称", example = "供应商")
    @ExcelProperty("商品来源")
    private String productSourceName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
